package com.strelitzia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.strelitzia.entity.DynamicEntity;
import com.strelitzia.exception.StrelitziaException;
import com.strelitzia.vo.DynamicForm;
import com.strelitzia.vo.DynamicItem;

import java.util.List;

/**
 * @create 2023/12/25 10:21
 */
public interface DynamicService extends IService<DynamicEntity> {
    void add(DynamicForm dynamicForm);

    List<DynamicItem> getList();

    List<DynamicItem> getList(Integer id);

    List<DynamicItem> getListForFriend();

    void like(Integer did) throws StrelitziaException;

    void unlike(Integer did) throws StrelitziaException;

    DynamicItem getDynamic(Integer did) throws StrelitziaException;

    List<DynamicItem> getListForMe();

    void del(Integer id);

    List<DynamicItem>  getListForSearch(String keyword);

}
